home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Library / +ORC / Orc pac 5 / FILEZ.ZIP / SKY.ZIP / REACH.ZIP / COPYDEMO.BAT < prev    next >
DOS Batch File  |  1992-09-25  |  3KB  |  65 lines

  1. @echo off
  2. break on
  3. set junkpath=
  4. if '%1' == '' copydemo c:\reach
  5. cls
  6. echo        Reach For The Skies Demo Installation
  7. echo        ═════════════════════════════════════
  8. echo    Usage: COPYDEMO d:\targdir
  9. echo    - Where d    is the diskdrive you want to copy the demo to
  10. echo    - and   targdir    is the directory you want to copy the demo to
  11. echo    default is:    c:\reach
  12. echo    ─────────────────────────────────────────────────────────────
  13. echo    The directory %1 is about to be created if necessary,
  14. echo    and then the files will be copied to it.
  15. echo    If not acceptable please press Break or Ctrl and C together.
  16. if "%PATH%" == "" goto RetryDOS
  17. :TryAgain
  18. %junkpath%xcopy    *.sel %1\ /v /w
  19. IF not errorlevel 1 goto InstalledOK
  20. :PrintAnError
  21. if exist %1\demo*.sel del %1\demo*.sel
  22. echo    There were problems installing the files which make up the
  23. echo    Reach for the Skies demo to the directory %1.
  24. echo    ─────────────────────────────────────────────────────────────
  25. echo    Possibly, your PATH does not give access to the XCOPY command.
  26. echo    This command is used to install the demo.
  27. echo    A path to your DOS directory is required to use XCOPY.
  28. echo    On the command-line type:    PATH=disk:\dospath
  29. echo    Example:            PATH=C:\DOS
  30. echo    and then try again. 
  31. echo    ─────────────────────────────────────────────────────────────
  32. echo    This demo requires approximately 1.26 MB of disk space.
  33. echo    Sorry, the demo will not fit on a standard 1.2MB 5¼ in. floppy
  34. goto    stopdemo
  35. :InstalledOK
  36. if exist %1\demo*.sel goto Continstall
  37. if "%junkpath%" == "" goto trydos
  38. echo    A path to your DOS directory is required to use XCOPY. 
  39. echo    On the command-line type:    PATH=disk:\dospath
  40. echo    Example    (already tried):    PATH=C:\DOS
  41. echo    and then try again.
  42. goto    stopdemo
  43. :trydos
  44. echo    Looking for XCOPY in C:\DOS...
  45. :RetryDos
  46. set junkpath=c:\dos\
  47. goto TryAgain
  48. :ContInstall
  49. if not exist %1\loadbobg.sel goto PrintAnError
  50. echo Copying Remaining Files...
  51. %junkpath%xcopy    *.sen %1 /v >NUL
  52. %junkpath%xcopy    *.sev %1 /v >NUL
  53. %junkpath%xcopy    tv_*.sec %1 /v >NUL
  54. for %%i in (tv_home.seq gamepal.sep demtrol.exe RFTSDEMO.exe loadms.stt copydemo.bat) do %junkpath%xcopy %%i %1 /v >NUL
  55. %junkpath%xcopy    bob*.com %1 /v >NUL
  56. %junkpath%xcopy    ju8*.com %1 /v >NUL
  57. %junkpath%xcopy    ???n?e?.com %1 /v >NUL
  58. %junkpath%xcopy    r???net.bin %1 /v >NUL
  59. %junkpath%xcopy    b?music.drv %1    /v >NUL
  60. echo    The Reach for the Skies demo is now installed on your hard disk.
  61. echo    To start it enter RFTSDEMO when in the %1 directory.
  62. cd %1
  63. :stopdemo
  64. set junkpath=
  65.